<template>
  <div>
      <span>{{b}}</span>
    <input type="text" name="" id="" v-model="x">
  </div>
</template>

<script>
export default {
  data() {
    return {
      b: this.text,
      x: ''

    }
  },
  props: {
    text: String,
    callback: Function
  },
  methods: {
  },
  watch: {
    x(value) {
      this.callback(value)
    }

  }

}
</script>

<style>
</style>
